package com.wy.dao;


import com.wy.bean.RepairBean;
import com.wy.model.sys.RepairEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RepairEntityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RepairEntity record);

    int insertSelective(RepairEntity record);

    RepairEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RepairEntity record);

    int updateByPrimaryKey(RepairEntity record);

    List<RepairBean>  repairList(@Param("pageSize") int pageSize,
                                 @Param("start")int start,
                                 @Param("type") String type,
                                 @Param("content")String content,
                                 @Param("status")String status,
                                 @Param("keys")String keys,
                                 @Param("startTime")String startTime,
                                 @Param("finishTime")String finishTime,
                                 @Param("uid")Integer uid,
                                 @Param("soon")String soon, @Param("rids")List<String> rids,@Param("ext1")Integer ext1);


    Integer repairSize(@Param("pageSize") int pageSize,
                       @Param("start")int start,
                       @Param("type") String type,
                       @Param("content")String content,
                       @Param("status")String status,
                       @Param("keys")String keys,
                       @Param("startTime")String startTime,
                       @Param("finishTime")String finishTime,
                       @Param("uid")Integer uid,
                       @Param("soon")String soon,@Param("rids")List<String> rids,@Param("ext1")Integer ext1);

    void deleteByPrimaryKeys(@Param("id") List<String> id);
}